import request from '@/utils/request'

// 查询地产项目图片列表
export function listDealPicture(query) {
  return request({
    url: '/picture/dealPicture/list',
    method: 'get',
    params: query
  })
}

// 查询地产项目图片详细
export function getDealPicture(id) {
  return request({
    url: '/picture/dealPicture/' + id,
    method: 'get'
  })
}

// 保存地产项目图片
export function saveDealPicture(data) {
  return request({
    url: '/picture/dealPicture/save',
    method: 'post',
    data: data
  })
}

// 删除地产项目图片
export function delDealPicture(id) {
  return request({
    url: '/picture/dealPicture/' + id,
    method: 'delete'
  })
}

export function deleteByFileId(fileId) {
  return request({
    url: '/picture/dealPicture/deleteByFileId/' + fileId,
    method: 'delete'
  })
}
